/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package optimization;

import java.util.LinkedList;

/**
 *
 * @author yulian
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Parser parser = new Parser();
        try {
            parser.parse("SELECT supplies.ITEM,PRICE,DAY FROM SUPPLIES,recipe,budget  " +
            		"WHERE item = menu  and price = 3");
            
            //error here. size should be 1.
            int size = parser.getBooleanExp_List().size();
            System.out.println(size);
            
            
        } catch (SQLParsingException e) {
            System.out.println(e.toString());
        }
    }
}
